cod_set_user_item

Syntax

native cod_set_user_item(id, item = 0, value = RANDOM);

Usage

id
Player index
item
Item index

Description

Sets player item with value.

Note

Set item index to 0 to remove player item.

Note

Set item index to RANDOM (-3) to give random item.

Note

Set value to RANDOM (-3) to set random value.

Note

COD_STOP (4) will be returned if item cannot be set.

Return

Player item value